package com.atguigu.mybatisplus.common.base;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

/**
 * 分页查询参数
 *
 * @author ：zhanglei
 * @date ：Created in 2023/5/10 15:23
 */
@Data
@Schema(description = "分页查询参数")
public class BasePageQuery {
    /**
     * 页码
     */
    @Schema(description = "页码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "页码不能为空")
    private Long pageNum;
    /**
     * 每页记录数
     */
    @Schema(description = "每页记录数", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
    @NotNull(message = "每页记录数不能为空")
    private Long pageSize;
}
